import React, {useEffect, FC} from 'react';
import style from './demoStyle'

interface IProps{
  name?: string
}

const TSCom: FC<IProps> = (props: any) => {
  useEffect(()=>{
    console.log("TSCom:", props, style)
  },[])
  return (
    <div>
      <style dangerouslySetInnerHTML={{ __html: style }} />
       <p>sub component</p>
       wwwwwwwwwwwwwwwwwwwwwwwwwwwww
    </div>
  )
}

export default TSCom;
